package com.example.ceramics.data;

import com.example.ceramics.entity.GoodsEntity;

import java.util.ArrayList;
import java.util.List;

public class Order {
    private static List<GoodsEntity> goodsList = new ArrayList<>();

    public static List<GoodsEntity> getGoodsEntities() {
        return goodsList;
    }

    public static void setGoodsEntities(List<GoodsEntity> goodsEntities) {
        goodsList = goodsEntities;
    }

    public static void addGoodsEntity(GoodsEntity goodsEntity) {
        goodsList.add(goodsEntity);
    }

    public static void addGoodsEntities(List<GoodsEntity> goodsEntities) {
        goodsList.addAll(goodsEntities);
    }
}
